home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 4 / United Public Domain Gold 4.iso / fredfish / ff.0683.dms / ff.0683.adf / KFAST / InstallLibrary < prev    next >
Text File  |  1992-06-25  |  1KB  |  35 lines

  1. .K ""
  2. echo "This script will install the req library, after first checking"
  3. echo "to see if you already have one installed.  If so, it will check the"
  4. echo "version number of the installed one, and give you the option of"
  5. echo "installing the one found here."
  6. echo ""
  7.  
  8. ask "Do you wish to continue with the installation? [y/n]"
  9. if WARN
  10.   if not EXISTS libs:req.library
  11.     echo "No existing library, installing libs:req.library..."
  12.     copy libs/req.library libs:req.library
  13.   else
  14.     echo "The version here is 2.5."
  15.     failat 20
  16.     echo "Your currently installed library version is:"
  17.     version req.library 2 5
  18.     if WARN
  19.       ask "Do you wish to update libs:req.library? [y/n]"
  20.       if WARN
  21.         echo "Updating libs:req.library..."
  22.     protect libs:req.library rwed
  23.         copy libs/req.library libs:req.library
  24.       else
  25.         echo "libs:req.library unchanged."
  26.       endif
  27.     else
  28.       echo "The current installed version is up to date."
  29.     endif
  30.   endif
  31. endif
  32.  
  33. echo "All Done.  Click close gadget to get rid of window."
  34. endcli
  35.